﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="User_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="maincontent" runat="Server">
    <div class="oferta">
        <img width="165" height="113" border="0" alt="" class="oferta_img" src="images/p1.png">
        <div class="oferta_details">
            <div class="oferta_title">Power Tools BST18XN Cordless</div>
            <div class="oferta_text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco </div>
            <a class="prod_buy" href="http://www.free-css.com/">details</a>
        </div>
        <div class="center_title_bar">Latest Products</div>
        <% foreach (product p in allProduct)
           { %>
        <div class="prod_box">
            <div class="center_prod_box">
                <div class="product_title"><a href="http://www.free-css.com/"><%=p.vendor.Name %> <%=p.Model  %></a></div>
                <div class="product_img">
                    <a href="http://www.free-css.com/">
                        <img border="0" alt="" src="<%=p.productimages.ElementAt(0).ImageURL%>" height="120" width="120"></a>
                </div>
                <div class="prod_price"><span class="reduce"><%=p.Price %> $</span> <span class="price"><%=p.Price %> $</span></div>
            </div>
            <div class="prod_details_tab">
                <a class="prod_buy" href="<% addCart(); %>?id=<%=p.ProductID %>">Add to Cart</a>
                <a class="prod_details" href="<%=productDetail() %>?id=<%=p.ProductID %>">Details</a>
                <%--<asp:LinkButton ID="LinkButton1" Text="Add to cart" runat="server"  OnClick="addcartClick"  CssClass="prod_details"></asp:LinkButton>--%>
            </div>
        </div>
        <%} %>
    </div>
</asp:Content>

